<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ page import="com.oes.entity.ExamWithoutTest"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>考试管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <table>
    	<tr>
    		<td>考试编号</td>
    		<td>考试名称</td>
    		<td>开始时间</td>
    		<td>结束时间</td>
    		<td>举办人</td>
    		<td>进入考试</td>
    	</tr>
    	<c:if test="${empty EOTList}">
			<tr>
				<td>考试库中暂时还没有考试哦</td>
			</tr>
		</c:if>
		<c:forEach items="${EOTList}" var="tEOT">
			<tr>
				<td>${tEOT.eid}</td>
				<td>${tEOT.name}</td>
				<td>${tEOT.password}</td>
				<td>${tEOT.startTime}</td>
				<td>${tEOT.endTime}</td>
				<td>${tEOT.owner}</td>
				<td>
					<form action="servlet/enterExamServlet" method="post">
						<input type="hidden" value="${tEOT.eid}" name="eid"> 
						<input type="submit" value="进入考试">
					</form>
				</td>
			</tr>
		</c:forEach>
    </table>
	<br>
    <a> 使用已有试卷考试  </a>
    <a href="exam/addExamWithoutTest.jsp"> 自定义考试  </a>
    
    <br><a href="index.jsp"> 返回首页 </a><br>
    
  </body>
</html>
